NoParameterFunction

class NoParameterFunction : FunctionDeclaration


A declared zero param function, including implementation, that a model can be given access to in order to gain info or complete tasks.

See also
defineFunction

for how to create an instance of this class.

Summary

Public functions

suspend JSONObject
open suspend JSONObject

Run the attached function with the provided arguments.

open List<Schema<Any>>

The parameters of the attached function as a list of Schema.

Public properties

suspend () -> JSONObject

Public functions

execute

suspend fun execute(): JSONObject

execute

open suspend fun execute(part: FunctionCallPart): JSONObject

Run the attached function with the provided arguments.

getParameters

open fun getParameters(): List<Schema<Any>>

The parameters of the attached function as a list of Schema.

Public properties

function

val function: suspend () -> JSONObject